package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Category;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper extends BaseMapper<Category> {

    /**
     * 查询菜品列表
     * @return
     */
    List<Category> findAll();

//    @Select("select * from category where id = #{id}")
//    public Category selectUseId(Long id);

    /**
     * 新增菜品
     * @param category
     */
//    void  add(Category category);

    /**
     * 更新
     * @param category
     */
//    void update(Category category);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);
}
